package org.i1510.common.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "sys_log")
public class SysLog {
	private String fdId;
	private String fdStatus;
	private String fdCreator;
	private String fdCreateTime;
	private String fdModify;
	private String fdModifyTime;
	private String fdClassName;
	private String fdMethodName;
	private String fdExMessage;//ex.getMessage()
	private String fdExClassName;//ex.getClass().getName()
	private String fdExLocalizedMessage;//ex.getLocalizedMessage()
	private String fdExStackTrace;//ex.getStackTrace()
	
	private String fdInterCeptor ;//拦截位置 preHandle afterCompletion
	private Long  fdCurrentTimeMillis;//当前时间
	
	/**
	 * 访问的host
	 */
	private String fdHost;
	/**
	 * 访问的地址
	 */
	private String fdAddr;
	
	@Column(name = "fd_host", length = 100)
	public String getFdHost() {
		return fdHost;
	}

	public void setFdHost(String fdHost) {
		this.fdHost = fdHost;
	}

	@Column(name = "fd_addr", length = 100)
	public String getFdAddr() {
		return fdAddr;
	}

	public void setFdAddr(String fdAddr) {
		this.fdAddr = fdAddr;
	}

	@Column(name = "fd_interceptor", length = 36)
	public String getFdInterCeptor() {
		return fdInterCeptor;
	}

	public void setFdInterCeptor(String fdInterCeptor) {
		this.fdInterCeptor = fdInterCeptor;
	}

	@Column(name = "fd_current_times")
	public Long getFdCurrentTimeMillis() {
		return fdCurrentTimeMillis;
	}

	public void setFdCurrentTimeMillis(Long fdCurrentTimeMillis) {
		this.fdCurrentTimeMillis = fdCurrentTimeMillis;
	}

	@Column(name = "fd_class_name", length = 360)
	public String getFdClassName() {
		return fdClassName;
	}

	public void setFdClassName(String fdClassName) {
		this.fdClassName = fdClassName;
	}

	@Column(name = "fd_method_name", length = 50)
	public String getFdMethodName() {
		return fdMethodName;
	}

	public void setFdMethodName(String fdMethodName) {
		this.fdMethodName = fdMethodName;
	}

	@Column(name = "fd_ex_message", length = 200)
	public String getFdExMessage() {
		return fdExMessage;
	}

	public void setFdExMessage(String fdExMessage) {
		this.fdExMessage = fdExMessage;
	}

	@Column(name = "fd_ex_class_name", length = 200)
	public String getFdExClassName() {
		return fdExClassName;
	}

	public void setFdExClassName(String fdExClassName) {
		this.fdExClassName = fdExClassName;
	}

	@Column(name = "fd_ex_local_mes", length = 200)
	public String getFdExLocalizedMessage() {
		return fdExLocalizedMessage;
	}

	public void setFdExLocalizedMessage(String fdExLocalizedMessage) {
		this.fdExLocalizedMessage = fdExLocalizedMessage;
	}

	@Column(name = "fd_ex_stack_trace", length = 65535)
	public String getFdExStackTrace() {
		return fdExStackTrace;
	}

	public void setFdExStackTrace(String fdExStackTrace) {
		this.fdExStackTrace = fdExStackTrace;
	}

		/** default constructor */
		public SysLog() {
		}

		/** minimal constructor */
		public SysLog(String fdId) {
			this.fdId = fdId;
		}

	

		// Property accessors
		@Id
		@Column(name = "fd_id", nullable = false, length = 36)
		public String getFdId() {
			return this.fdId;
		}

		public void setFdId(String fdId) {
			this.fdId = fdId;
		}

	@Column(name = "fd_status", length = 2)
		public String getFdStatus() {
			return this.fdStatus;
		}

		public void setFdStatus(String fdStatus) {
			this.fdStatus = fdStatus;
		}

		@Column(name = "fd_creator", length = 36)
		public String getFdCreator() {
			return this.fdCreator;
		}

		public void setFdCreator(String fdCreator) {
			this.fdCreator = fdCreator;
		}

		@Column(name = "fd_create_time", length = 20)
		public String getFdCreateTime() {
			return this.fdCreateTime;
		}

		public void setFdCreateTime(String fdCreateTime) {
			this.fdCreateTime = fdCreateTime;
		}

		@Column(name = "fd_modify", length = 36)
		public String getFdModify() {
			return this.fdModify;
		}

		public void setFdModify(String fdModify) {
			this.fdModify = fdModify;
		}

		@Column(name = "fd_modify_time", length = 20)
		public String getFdModifyTime() {
			return this.fdModifyTime;
		}

		public void setFdModifyTime(String fdModifyTime) {
			this.fdModifyTime = fdModifyTime;
		}

		

}
